#ifndef _NETWORK
#define _NETWORK
 
#include <QApplication>
#include <QThread>
#include <iostream>


extern "C" {
#include <libCV/libCV.h>
#include <libcomm/comm.h>
#include <libgps/gps.h>
#include <libCV/ppm.h>
#include <libCV/video_recorder.h>
}

#include "Telemetry.h"
#include "Video.h"

 
class Network : public QThread
{
	Q_OBJECT

    public:
    Network(Telemetry *t, Video *v);
	void run();

	public slots:
	void record_video();
	void stop_record();

	signals:
	void set_img(unsigned char*, int, int);
 
    private:
	Telemetry *telemetry;
	Video *video;
	video_record_t *v;
	int record;

};
 
#endif
